package per.ethan.ssm.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * @author Ethan
 * @date 2020/03/10 19:38
 */

@Data
@Accessors(chain = true)
public class BaseEntity implements Serializable {

    @ApiModelProperty(value = "主键ID 字段类型: bigint 长度: 20")
    private Long id;

    @ApiModelProperty(value = "是否删除 字段类型: int 说明: 0表示未删除、9表示已删除")
    private Integer state;

    @ApiModelProperty(value = "创建时间 字段类型: datetime")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createDate;

}
